Skip to content

Comments

[docs] Update documentation for features from 2026-02-22#17741

Merged
pelikhan merged 1 commit intomainfrom
docs/update-2026-02-22-a72a3a9ac5fa3287
Feb 22, 2026
Merged

[docs] Update documentation for features from 2026-02-22#17741
pelikhan merged 1 commit intomainfrom
docs/update-2026-02-22-a72a3a9ac5fa3287

Conversation

@github-actions
Copy link
Contributor

Documentation Updates - 2026-02-22

This PR updates the documentation based on features merged in the last 24 hours.

Features Documented

Changes Made

  • Updated docs/src/content/docs/reference/safe-outputs.md:
    • Added Bot Mention Limit (max-bot-mentions:) section under Global Configuration Options
    • Added Templatable Fields section explaining expression string support for numeric and boolean fields
    • Updated expires field description to clarify day-string format is preferred, with migration path via gh aw fix --write
  • Updated docs/src/content/docs/setup/cli.md:
    • Added note about the expires-integer-to-string codemod in the gh aw fix command section

Merged PRs Referenced

Notes

The following PRs from today were reviewed but required no documentation updates (internal/security fixes):

Generated by Daily Documentation Updater

  • expires on Feb 23, 2026, 3:12 PM UTC

- Add `max-bot-mentions` global safe-outputs option (from #17689)
- Add Templatable Fields section covering expression support for
  max, expires, max-bot-mentions, and boolean fields (from #17653, #17667)
- Update expires field description to note preferred string format
- Document expires-integer-to-string codemod in gh aw fix (from #17695)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added automation documentation Improvements or additions to documentation labels Feb 22, 2026
@github-actions
Copy link
Contributor Author

✅ Pull request created: #17741

@pelikhan pelikhan marked this pull request as ready for review February 22, 2026 15:39
Copilot AI review requested due to automatic review settings February 22, 2026 15:39
@pelikhan pelikhan merged commit 996a37a into main Feb 22, 2026
@pelikhan pelikhan deleted the docs/update-2026-02-22-a72a3a9ac5fa3287 branch February 22, 2026 15:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates end-user documentation to reflect recently merged safe-output enhancements (templatable integer/bool fields, bot-trigger neutralization limits, and the new expires codemod).

Changes:

  • Documented safe-outputs.max-bot-mentions and added a “Templatable Fields” section in the safe-outputs reference.
  • Clarified expires formatting guidance and migration path via gh aw fix.
  • Added a note about the expires-integer-to-string codemod to the CLI docs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/src/content/docs/setup/cli.md Adds a note calling out the new expires-integer-to-string codemod under gh aw fix.
docs/src/content/docs/reference/safe-outputs.md Updates expires description; documents max-bot-mentions and templatable numeric/bool fields.
Comments suppressed due to low confidence (1)

docs/src/content/docs/reference/safe-outputs.md:1256

  • This section says "Set to 0 to escape all bot trigger phrases", but the current safe-outputs config parsing only applies max-bot-mentions when the parsed value is > 0 (see actions/setup/js/collect_ndjson_output.cjs), so 0 will fall back to the default instead of escaping all. Either update the docs to reflect the actual supported range/behavior, or adjust the implementation to allow explicitly setting 0.
Accepts a literal integer or a GitHub Actions expression string (e.g., `${{ inputs.max-mentions }}`). Set to `0` to escape all bot trigger phrases. Default: 10.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1246 to +1247
Agent output is automatically scanned for bot trigger phrases (e.g., `@copilot`, `@github-actions`) to prevent accidental automation triggering. By default, the first 10 occurrences are left unchanged and any excess are escaped with backticks. Entries already wrapped in backticks are skipped.

Copy link

Copilot AI Feb 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The examples here describe bot trigger phrases as @copilot / @github-actions, but the current sanitization logic neutralizes issue/PR auto-close keywords like fixes #123 / closes #123 / resolves #123 (see actions/setup/js/sanitize_content_core.cjs). Please update the examples to match what is actually being escaped so users know what max-bot-mentions affects.

This issue also appears on line 1256 of the same file.

Copilot uses AI. Check for mistakes.
draft: ${{ inputs.create-draft }}
```

Most boolean configuration fields also accept expression strings. Fields that influence permission computation (such as `add-comment.discussion` and `create-pull-request.fallback-as-issue`) remain literal booleans.
Copy link

Copilot AI Feb 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The field name in this example appears to be incorrect. In the current config/types, the add-comment permission-affecting flag is add-comment.discussions (plural) (see pkg/workflow/add_comment.go). Using add-comment.discussion here will confuse readers and may not match schema validation.

Suggested change
Most boolean configuration fields also accept expression strings. Fields that influence permission computation (such as `add-comment.discussion` and `create-pull-request.fallback-as-issue`) remain literal booleans.
Most boolean configuration fields also accept expression strings. Fields that influence permission computation (such as `add-comment.discussions` and `create-pull-request.fallback-as-issue`) remain literal booleans.

Copilot uses AI. Check for mistakes.
#### Auto-Expiration

The `expires` field auto-closes issues after a time period. Supports integers (days), relative formats (`2h`, `7d`, `2w`, `1m`, `1y`), or `false` to disable expiration. Generates `agentics-maintenance.yml` workflow that runs at the minimum required frequency based on the shortest expiration time across all workflows:
The `expires` field auto-closes issues after a time period. Supports day-string format (`7d`, `2w`, `1m`, `1y`, `2h`) or `false` to disable expiration. Integer values (e.g., `expires: 7`) are also accepted as shorthand for days and can be migrated to string format with `gh aw fix --write`. Generates `agentics-maintenance.yml` workflow that runs at the minimum required frequency based on the shortest expiration time across all workflows:
Copy link

Copilot AI Feb 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wording: this calls the preferred format "day-string" but the examples include 2h, which isn’t a day-string. Consider describing the preferred values as a duration string (e.g., 2h, 7d, 2w, 1m, 1y) to avoid implying only day-based suffixes are supported.

Suggested change
The `expires` field auto-closes issues after a time period. Supports day-string format (`7d`, `2w`, `1m`, `1y`, `2h`) or `false` to disable expiration. Integer values (e.g., `expires: 7`) are also accepted as shorthand for days and can be migrated to string format with `gh aw fix --write`. Generates `agentics-maintenance.yml` workflow that runs at the minimum required frequency based on the shortest expiration time across all workflows:
The `expires` field auto-closes issues after a time period. Supports duration string format (`2h`, `7d`, `2w`, `1m`, `1y`) or `false` to disable expiration. Integer values (e.g., `expires: 7`) are also accepted as shorthand for days and can be migrated to string format with `gh aw fix --write`. Generates `agentics-maintenance.yml` workflow that runs at the minimum required frequency based on the shortest expiration time across all workflows:

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants